import 'package:flutter/material.dart';
import 'package:shopping_group/base/base_constant.dart';

class ImageUtils {
  static Widget fadeInImageNetwork(String image) {
    return FadeInImage.assetNetwork(
      image: image,
      placeholder: BaseConstant.DEF_IMAGE,
      fit: BoxFit.contain,
    );
  }

  static Widget imageNetwork(String image) {
    return Image.network(
      image,
      fit: BoxFit.cover,
    );
  }
}
